package work.linruchang.mybatisplussamplestest.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import work.linruchang.mybatisplussamplestest.bean.SysUser;

import java.util.Map;

@Mapper
public interface SysUserDao extends MyBaseMapper<SysUser> {

    SysUser findOneById(String id);

    Map findOneByIdAndFriendLink(String id);
    Map findOneByIdAndFriendLink2(String id);

    IPage<Map> findOneByIdAndFriendLink2Page(IPage<Map> pageInfo, @Param("ew") Wrapper<SysUser> wrapper);

    IPage<Map> findOneByIdAndFriendLink2Page2(IPage<Map> pageInfo, @Param("ew") Wrapper<SysUser> wrapper);
}
